package com.example.day2arouter.view;


import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.example.day2arouter.R;

import static com.example.day2arouter.view.Path.Frag;

/**
 * A simple {@link Fragment} subclass.
 */
@Route(path = Frag)
public class Pig1Fragment extends Fragment {
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        TextView textView = new TextView(getContext());
        textView.setText("Fragment");
        textView.setTextSize(50);
        return textView;
    }

}
